//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03B
TN_Widget.CreateTable([['BottleRock Festival: Pearl Jam, Ed Sheeran, Stevie Nicks & Mana - 3 Day Pass','Napa Valley Expo','Napa, CA','Friday','5/24/2024','TBD','5736140','BottleRock-Festival--Pearl-Jam--Ed-Sheeran--Stevie-Nicks---Mana---3-Day-Pass-5-24-2024'],['Action Bronson','August Hall','San Francisco, CA','Saturday','5/25/2024','8:30 PM','6295391','Action-Bronson-5-25-2024'],['BottleRock Festival: Ed Sheeran, Queens of the Stone Age, Dominic Fike, Norah Jones & The Offspring - Sunday','Napa Valley Expo','Napa, CA','Sunday','5/26/2024','11:30 AM','5736143','BottleRock-Festival--Ed-Sheeran--Queens-of-the-Stone-Age--Dominic-Fike--Norah-Jones---The-Offspring---Sunday-5-26-2024'],['Action Bronson','History - Toronto','Toronto, Canada','Thursday','8/15/2024','8:00 PM','6418076','Action-Bronson-8-15-2024'],['Action Bronson','Newport Music Hall','Columbus, OH','Sunday','8/18/2024','7:00 PM','6418077','Action-Bronson-8-18-2024'],['Action Bronson','The Neptune Theatre','Seattle, WA','Monday','4/7/2070','TBD','4386936','Action-Bronson-4-7-2070'],['Action Bronson','Midway - Edmonton','Edmonton, Canada','Friday','4/11/2070','TBD','4392972','Action-Bronson-4-11-2070'],['Action Bronson','Varsity Theater - MN','Minneapolis, MN','Sunday','4/13/2070','TBD','4387016','Action-Bronson-4-13-2070'],['Action Bronson','Saint Andrews Hall - Detroit','Detroit, MI','Thursday','5/1/2070','TBD','4387013','Action-Bronson-5-1-2070'],['Action Bronson','Heaven Stage at Masquerade - GA','Atlanta, GA','Tuesday','5/6/2070','TBD','4387589','Action-Bronson-5-6-2070'],['Action Bronson','The Orange Peel','Asheville, NC','Saturday','5/10/2070','TBD','4389612','Action-Bronson-5-10-2070'],['Action Bronson','Baltimore Soundstage','Baltimore, MD','Tuesday','5/13/2070','TBD','4387586','Action-Bronson-5-13-2070'],['Action Bronson','Big Night Live','Boston, MA','Thursday','5/15/2070','TBD','4387012','Action-Bronson-5-15-2070'],['Action Bronson','Warsaw','Brooklyn, NY','Tuesday','5/20/2070','TBD','4387584','Action-Bronson-5-20-2070'],['Action Bronson','Warsaw','Brooklyn, NY','Wednesday','5/21/2070','TBD','4387583','Action-Bronson-5-21-2070']],'Action Bronson','http://www.ticketnetwork.com/ticket/Action-Bronson-events.aspx');